package com.outdoor.model.dto.request;

import com.outdoor.model.enums.ActivityType;
import jakarta.validation.constraints.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

/**
 * 团队创建请求DTO
 * 
 * @author OutdoorTeam
 * @date 2025-05-18
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TeamCreateRequest {

    @NotBlank(message = "团队名称不能为空")
    private String name;

    @NotNull(message = "活动类型不能为空")
    private ActivityType activityType;

    @NotBlank(message = "活动地点不能为空")
    private String location;

    @NotNull(message = "活动日期不能为空")
    @FutureOrPresent(message = "活动日期必须是今天或未来日期")
    private LocalDate date;

    @NotNull(message = "最大成员数不能为空")
    @Min(value = 2, message = "最大成员数至少为2人")
    private Integer maxMembers;

    @NotBlank(message = "活动描述不能为空")
    private String description;

    private String experienceLevel;

    private String additionalRequirements;
} 